package com.yuke.cloud.service.uac.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.uac.entity.AccMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccMenuMapper extends MyMapper<AccMenu> {

    /**
     * Select menu child count by pid int.
     *
     * @param pid the pid
     *
     * @return the int
     */
    int selectMenuChildCountByPid(Long pid);
    List<AccMenu> findMenuListByUserId(Long userId);

    /**
     * 根据角色ID查询菜单列表.
     *
     * @param roleId the role id
     *
     * @return the list
     */
    List<AccMenu> listMenuListByRoleId(@Param("roleId") Long roleId);
}